﻿@using ProjectHopur23.Models;
<link rel="stylesheet" type="text/css" href="/Content/bootstrap.css" />
<link rel="stylesheet" type="text/javascript" href="/Scripts/bootstrap.js" />
<link rel="stylesheet" type="text/javascript" href="/Scripts/jquery-1.8.2.js" />

<h1>Leikir</h1>
<div id="gamesContainer">
	@foreach (Game g in Model)
	{
		<div id="@g.ID">
			<img src="@Url.Content(@g.imageURL)" alt="@g.name" />
			<p>@g.description</p>
			@Html.ActionLink("Spila leik", "GameDescription/" + g.ID.ToString(), "Game", null, new { @class = "btn btn-small" })
           <input   type="button" value="Til baka" onclick="history.back(-1)" />
		</div>
	}
</div>

